#ifndef LOG_FILE_H_
#define LOG_FILE_H_

#include <string>
using namespace std;

class LogFile
{
public:
	static bool Create();
	static void PrintLine(const string & ss, bool updateTime=true);
	static void Print(bool updateTime, const char* format, ...);

private:
	LogFile();
	~LogFile();

private:
	static LogFile *Instance;
	static void UpdateTime();

private:
	FILE		*Output;
	bool		IsOpen;

	SYSTEMTIME	SysTime;
};

#endif